package com.mss.media.enumeration;

import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author 湫
 * @Date 2021/11/29 16:35
 * Name CaseType
 */
@Getter
@AllArgsConstructor
public enum CaseType implements IEnum<Integer> {
    /**
     * 图片
     */
    IMG(1,"图片"),
    /**
     * 视频
     */
    VIDEO(2,"视频");

    private final Integer code;
    private final String desc;

    @Override
    public Integer getValue() {
        return code;
    }

    @Override
    public String toString() {
        return this.desc;
    }
}
